﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Utility;

namespace Model
{
	[Serializable]
	[PrimaryKey("Id")]
	[Table("Resource_Bench")]
	public class Resource_Bench : Utility.BaseData
	{
		public string BenchNo { get; set; }
		public string BenchName { get; set; }
		public string KeyParam { get; set; }
		public string BenchModel { get; set; }
		public int Responser { get; set; }
		/// <summary>
		/// 0
		/// </summary>
		public int BenchStatus { get; set; }
		public string SopFileId { get; set; }
		public string InstructionFileId { get; set; }
		public string TechSpecFileId { get; set; }
		public string RepairFileId { get; set; }
		public int InArea { get; set; }
		public int BenchType { get; set; }
		public string Remark { get; set; }
		public string AttachId { get; set; }
		public void Create(UserCache userInfo)
		{
			this.CreateUser = userInfo.UserId;
			this.CreateTime = DateTime.Now;
		}
		public void Modify(UserCache userInfo)
		{
			this.LastUpdateUser = userInfo.UserId;
			this.LastUpdateTime = DateTime.Now;
		}
		[NotMapped]
		public string CreateUserName { get; set; }
		[NotMapped]
		public string ResponserName { get; set; }
	}


}
